home *** CD-ROM | disk | FTP | other *** search
- Path: porky.apl.s.shuttle.de!not-for-mail
- Newsgroups: comp.sys.amiga.programmer
- From: "Andreas Voegele" <andreas@porky.apl.s.shuttle.de>
- Date: Thu, 22 Feb 1996 12:53:25 +0100
- Subject: Get file handle from file descriptor? (SAS/C)
- Message-ID: <67478443@porky.apl.s.shuttle.de>
- Organization: The Abyss, Stuttgart, Germany
-
- How can I get the AmigaDOS file handle that is associated with a file
- descriptor? I need to Examine() a file opened with open().
-
- DICE provides the function fdtofh(), but I haven't found
- an equivalent function in the SAS/C environment.
-
- BTW, why does open("plainfile", 0) return 0 when using SAS/C?
- Aren't the descriptors 0, 1 and 2 reserved for standard input,
- standard output and standard error?
-
- Bye, Andy
-